'use strict'

module.exports = [
    {
        name: 'test'
    },

    {
        // 全局
        // 请求计算耗时
        middleware: async (c,next)=>{
            let startTime = Date.now()
            await next()
            let endTime = Date.now()
            console.log(endTime - startTime,'ms')
        }
    }
]